package com.test.group6.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.test.group6.domain.WorkesInformation;
import com.test.group6.service.AddWorkesService;

@RestController
@RequestMapping("/AddWorkesController")
public class AddWorkesController {
	@Autowired
	private AddWorkesService addWorkesService;
	
	@RequestMapping("/addNewWorkes")
	public String addNewWorkes(WorkesInformation workesInformation) {//添加企业高管
		System.out.println(workesInformation);
		return addWorkesService.addNewWorkes(workesInformation);
	}

}
